package mask;

import java.util.Scanner;

public class Title7 {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		System.out.println("输入1:代表执行加法  2.代表执行减法  3.代表执行乘法 4.代表执行除法");
		System.out.println("a=1,b=2");
		int a = 1;
		int b = 2;
		int sum =0; 
		int x = scan.nextInt();
		switch(x) {
		case 1:
			sum=a+b;
			break;
		case 2:
			sum=a-b;
			break;
		case 3:
			sum=a*b;
			break;
		case 4:
			sum=a/b;
			break;
		}
		System.out.println("结果为" + sum);
	}
}
